JavaScript

A5.ButtonsetDisabled Method

Syntax

A5.Button.setDisabled(disabled[,buttons])

Arguments

disabledboolean

The disabled state of the button(s).

buttonsstringelementarray

The specific BUTTON elements to disable/enable. If none are passed in then all buttons bound to the A5.Button control will be disabled/enabled.

Description

Disable/enable some or all of the BUTTON elements bound to the A5.Button control.

Example

// assume "saveButton" is an A5.Button and "bEle" is a BUTTON element bound to "saveButton"
saveButton.setDisabled(true);
// all buttons bound to "saveButton" are disabled
saveButton.setDisabled(false,bEle);
// all buttons bound to "saveButton" except the BUTTON element "bEle" are disabled